<template>
  <div @click="toQuestion(index)" class="examDetail">
    <div class="first">{{index + 1}}</div>
    <div class="first">{{hisExam.myQuestions[index].choice}}</div>
    <div class="first">{{hisExam.myQuestions[index].ranswer}}</div>
    <div class="first">5 min</div>
    <div class="first">单选题</div>
  </div>
</template>

<script>
  export default {
    name: 'Practise_detail',
    props: [
      'hisExam', 'index'
    ],
    mounted () {
      // console.log(this.test)
    },
    methods: {
      toQuestion (index) {
        wx.navigateTo({url: '../exercise/main?index=' + index})
      }
    }
  }
</script>

<style scoped>
  .examDetail{
    display: flex;
    padding: 10rpx;
    border-bottom: 1rpx solid#eee;
  }
  .first{
    width: 140rpx;
    background-color: #2fad62 !important;
    margin-right: 5rpx;
    font-size: 40rpx;
    line-height: 20rpx;
    color: #fffeff;
    line-height: 80rpx;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
</style>
